package com.bw;

import org.springframework.amqp.rabbit.annotation.RabbitHandler;
import org.springframework.amqp.rabbit.annotation.RabbitListener;
import org.springframework.stereotype.Component;

@Component
@RabbitListener(queues = "bw")
public class MqConsumer {
    @RabbitHandler
    public void showMessage(String message){
        System.out.println("接收到消息"+message);
    }
}
